import request from "@/utils/request";
import { AxiosPromise } from "axios";
import {DeviceWarnLogPageResult, DeviceWarnLogQuery } from "./warnLogTypes";

/**
 * 获取设备实时分页数据
 *
 * @param queryParams
 */
export function getDeviceWarnLogPage(
	queryParams?: DeviceWarnLogQuery
): AxiosPromise<DeviceWarnLogPageResult> {
	return request({
		url: "/api/v1/device/warnLog/page",
		method: "get",
		params: queryParams,
	});
}
